import requests
# import json
# 1 1#主机非电气量
# 2 2#主机非电气量
# 3 3#主机非电气量
# 4 4#主机非电气量
# 5 电气量
# 6 电气设备记录
# 7 变频机组电气量
# 8 空
# 9 空
# 10 扬压力
# 月报
# http://192.168.100.10:8081/LLJBBXT/averageyueServlet
# 参数：nianyue: 2024-03
# http://192.168.100.10:8081/LLJBBXT/averagenianServlet 
# 参数：nian: 2024
# http://192.168.100.10:8081/LLJBBXT/LLJHISServlet
# 参数：
# startTime: 2024-03-22 00:00:00
# endTime: 2024-03-22 23:59:59
# STCD: 1

data = {
    "startTime": "2024-03-22 00:00:00",
    "endTime": "2024-03-22 00:59:59",
    "STCD": 10
}
resp = requests.post("http://192.168.100.10:8081/LLJBBXT/LLJHISServlet",data=data)
# print(resp.text)
if resp.json():
    temp  = resp.json()
    print('\n'.join(map(str,temp[:50])))
    # for t in temp:
    #     print(t)
